<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <title></title>
    <meta name="keywords" content="智辉CRM">
    <meta name="description" content="智辉CRM">
    <link rel="Bookmark" href="favicon.ico">
    <link rel="Shortcut Icon" href="favicon.ico" />
    <!--[if lt IE 9]> 
    <script type="text/javascript" src="Lib/html5.js"></script>
    <script type="text/javascript" src="Lib/respond.min.js"></script>
    <script type="text/javascript" src="Lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="__PUBLIC__/css/H-ui.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
    <link href="Tpl/Service/common/order/page01.css" rel="stylesheet" type="text/css" />
    <!--自己的样式-->
   <!--  <link href="Tpl/Assistant/common/expense/expense_add.css" rel="stylesheet" type="text/css"> -->
    <!--[if IE 6]> 
    <script type="text/javascript" src="Lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('.pngfix,.icon');</script> 
    <![endif]-->
    <style>
        .img_style{
            width: 30px;
            margin: 0 auto;
        }
        .imgChoice {
            width: 40px;
            margin: 0px auto;
            height: 40px;
            overflow: hidden;
        }
    </style>
    
</head>

<body>
    <assign name="getType" value="$Think.get.type"/>
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 微社区管理 <span class="c-gray en">&gt;</span> 车辆认证 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    <!-- <a class="btn  radius r mr-20 {$getType==1?'btn-warning':'btn-default'}" style="line-height:1.6em;margin-top:3px" href="{:U('orderList', array('type'=>1))}"  title="" > 微社区水果</a><a class="btn  radius r mr-20 {$getType==2?'btn-warning':'btn-default'}" style="line-height:1.6em;margin-top:3px" href="{:U('orderList', array('type'=>2))}"   title="" > 物业费账单</a> --></nav>

<div class="pd-20">
    <form action="" method="get">
    <input type="hidden" name="m" value="Admin"/>
    <input type="hidden" name="c" value="WechatCar"/>
    <input type="hidden" name="a" value="carList"/>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
    <div class="text-l">
     <!-- 账单类型： -->
     <!-- <div class="check-box check-pad"><assign name="type" value="$Think.get.type"/>
        <input type="radio" id="radio-1" name="type" value="1" {$type==1?'checked':''}>
        <label for="radio-1">微社区水果</label>
      </div>
      <div class="check-box check-pad" style="padding-right: 100px;">
        <input type="radio" id="radio-2" name="type" value="2" {$type==2?'checked':''}>
        <label for="radio-2">物业费账单</label>
      </div> -->
      <!--<div class="check-box check-pad" style="padding-right: 40px">-->
        <!--<input type="radio" id="radio-3" name="type" value="3" {$type==3?'checked':''}>-->
        <!--<label for="radio-3">微社区自助缴费</label>-->
      <!--</div>-->
     日期范围：
        <input type="text" onfocus="WdatePicker()" id="datemin" class="input-text Wdate" name='start_time' value="{$Think.get.start_time}" style="width:120px;">
        -
        <input type="text" onfocus="WdatePicker()" name='end_time' id="datemax" class="input-text Wdate" value="{$Think.get.end_time}" style="width:120px;margin-right: 100px">
<assign name="cc" value="$Think.get.community_id"/>
<assign name="ss" value="$Think.get.status"/>
            <!-- <select name="community_id" id="community_id" class="select" style="width: 10%;height: 30px">
                <option  value="">请选择小区</option>
                <volist name="communityData" id="v">
                    <option value="{$v.id}" {$v['id']==$cc?'selected':''}>{$v.name}</option>
                </volist>
            </select> -->
            <select name="status" id="status" class="select" style="width: 10%;height: 30px">
                <option  value="">请选择状态</option>
                <option value="1" {$ss==1?'selected':''}>审核通过</option>
                <option value="0" {$ss==2?'selected':''}>审核中</option>
                <option value="-1" {$ss==3?'selected':''}>审核失败</option>
            </select>
     <!-- 区域：
        <span class="select-box" style="width: 10%">
          <select class="select" size="1" name="">
            <option value="" selected>请选择区域</option>
            <option value="" >越城区</option>
            <option value="1">柯桥区</option>
          </select>
        </span> -->
         <!-- <input type="text" id="search" class="input-text" style="width:250px" placeholder="输入姓名、电话" id="" name="key"> -->
        <!--<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜订单</button>-->
        <span class="r">
        <input type="text" id="search" value="{$Think.get.key}" class="input-text" style="width:250px;margin-right: 4px" placeholder="输入姓名、电话"  name="key">
        <button type="submit" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe665;</i> 查询</button>
        <!-- <button class="btn btn-primary radius" id="get_account"><i class="Hui-iconfont">&#xe644;</i> 导出Excel</a></button> -->
        </span>
       
    </div>
    </div>
    </form>
   <!--  <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"><a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> <a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加用户</a></span> <span class="r">共有数据：<strong>88</strong> 条</span> </div> -->
    <div class="mt-20">
    <input type="hidden" name="regtime" id="regtime" value="{$data[0]['regtime']}"/>
    <table class="table table-border table-bordered table-hover table-bg table-sort">
        <thead>
            <tr role="row"><th rowspan="1" scope="col" colspan="11">{$title}</th></tr>
            <tr class="text-c">
                <th>#</th>
                <th>车牌号</th>
                <th>品牌</th>
                <th>车辆图</th>
                <th>驾驶证</th>
                <th>地址</th>
                <th>联系人</th>
                <th>联系电话</th>
                <th>审核状态</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <!-- <?php Mydump($data);?> -->
            <volist name="data" id="v">
                <tr id="roll"></tr>
                <tr class="text-c">
                    <td>{$v.id}</td>
                    <td>{$v.car_no}</td>
                    <td>{$v.brand}</td>
                    <td><div class="imgChoice"><img class="img-responsive" src="{$v.img1}" alt=""></div></td>
                    <td><div class="imgChoice"><img class="img-responsive" src="{$v.img2}" alt=""></div></td>
                    <td>{$v.user.address}</td>
                    <td>{$v.user.realname}</td>
                    <td>{$v.user.tel}</td>
                    <td>
                    <if condition="$v['status']==1">
                    审核通过
                    <elseif condition="$v['status']==-1"/>
                    审核未通过
                    <elseif condition="$v['status']==0"/>
                    未审核
                    </if>
                    </td>
                    <if condition="$v['status']==0">
                    <td><a href="{:U('carAudit',array('id'=>$v['id'],'status'=>1))}" class="label label-success radius ">通过</a>
                        <a href="{:U('carAudit',array('id'=>$v['id'],'status'=>-1))}" class="label label-primary radius ">不通过</a>
                        <a href="{:U('carDel',array('id'=>$v['id']))}" class="label label-warning radius " onclick="return confirm('是否确认删除？')">删除</a>
                    </td>
                    <else/>
                    <td>
                        <a href="{:U('CarDel',array('id'=>$v['id']))}" class="label label-warning radius " onclick="return confirm('是否确认删除？')">删除</a>
                    </td>
                    </if>
                    
                    </tr>
            </volist>
        </tbody>
    </table>
    <div style="width: 100%;margin: 10px 0">{$page}</div>
    </div>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/laypage/1.2/laypage.js"></script> 
<!-- <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>  -->
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script>  
<!-- <script type="text/javascript" src="Tpl/Admin/common/wechat/lunxun.js"></script>  -->
<script type="text/javascript">
    // $(function(){
    //         work.init();
    //     });
        // $(document).on("click","#get_account",function(){
        //     var start_time = $("#datemin").val();
        //     var end_time = $("#datemax").val();
        //     var key = $("#search").val();
        //     var community_id = $("#community_id").val();
        //     var status = $("#status").val();
        //     var url='/index.php?m=Admin&c=WechatUser&a=dumpExcel&key='+key+'&start_time='+start_time+'&end_time='+end_time+'&community_id='+community_id+'&status='+status;
        //     window.open(url);
        // });

        function to(url){
            layer.open({
                type: 2,
                title: '订单详情',
                maxmin: true,
                fix:false,
                area: ['820px', '500px'],
                content: url
            });

        }

        // $(document).on("click","#get_account",function(){
        //     var start_time = $("#datemin").val();
        //     var end_time = $("#datemax").val();
        //     var key = $("#search").val();
        //     var community_id = $("#community_id").val();
        //     var status = $("#status").val();
        //     var url='/index.php?m=Admin&c=WechatUser&a=dumpExcel&key='+key+'&start_time='+start_time+'&end_time='+end_time+'&community_id='+community_id+'&status='+status;
        //     window.open(url);
        // });

       

       // var work = {
       //      init: function() {
       //          this.eventListen();
       //      },

       //      eventListen: function() {
       //      $(document).on("click",".imgChoice",function(){
       //          var obj=$(this);
       //          // $(".imgChoice img").removeClass("img_style");
       //          // var obj_img=$(".imgChoice img");
       //          work.imgShow(obj);
       //          });
       //      },

       //      // 显示图片
       //      imgShow: function(obj) {
       //          obj.removeClass("imgChoice");
       //          // $(".imgChoice img").removeClass("img_style");
       //          // obj.css("width",'500px;').css("height",'500px');
       //          // obj.css("width:500px","height:500px");
       //          layer.open({
       //                type: 1,
       //                title: false,
       //                closeBtn: 1,
       //                // area: '500px',
       //                skin: 'layui-layer-nobg', //没有背景色
       //                shadeClose: true,
       //                content: obj,
       //                end:function(){
       //                  obj.show();
       //                  // obj.css("width",'40px;').css("height",'40px');
       //                  obj.addClass("imgChoice");
       //                  // $(".imgChoice img").addClass("img_style");
       //                  console.log('关闭layer');
       //                }
       //              });
       //      }


       // };

        $(function() {
            $(document).on("click",".imgChoice",function(){
                var obj=$(this);
                // $(".imgChoice img").removeClass("img_style");
                // var obj_img=$(".imgChoice img");
                imgShow(obj);
                });
            });

            function imgShow(obj) {
                obj.removeClass("imgChoice");
                // $(".imgChoice img").removeClass("img_style");
                // obj.css("width",'500px;').css("height",'500px');
                // obj.css("width:500px","height:500px");
                layer.open({
                      type: 1,
                      title: false,
                      closeBtn: 1,
                      // area: '500px',
                      skin: 'layui-layer-nobg', //没有背景色
                      shadeClose: true,
                      content: obj,
                      end:function(){
                        obj.show();
                        // obj.css("width",'40px;').css("height",'40px');
                        obj.addClass("imgChoice");
                        // $(".imgChoice img").addClass("img_style");
                        console.log('关闭layer');
                      }
                    });
            }


        
</script> 

</body>

</html>

